home *** CD-ROM | disk | FTP | other *** search
/ Guide To Cracking 2002 / Guide_to_Cracking_2002.iso / Utilities / Port Scanners / Nx.exe / SOCK.H < prev    next >
C/C++ Source or Header  |  2000-09-17  |  786b  |  25 lines

  1. #if !defined(_SOCK_INCLUDED)
  2. #define _SOCK_INCLUDED
  3.  
  4. #include "host.h"
  5.  
  6. struct Sock
  7. {
  8.     Host *m_pHost;
  9.     SOCKET m_Sock;
  10.     unsigned int m_iPort;
  11.     clock_t m_iTime;        // the time that the socket tried to connect
  12.     clock_t m_iTimeout;     // the time at which the socket timesout
  13.     char m_szBuf[1024];        // output buffer used by plugins
  14.     HANDLE m_hThread;        // handle to thread used ONLY with plugins
  15.     UINT m_addrThread;        // the address of the thread -- not sure why yet
  16.     UINT m_iPluginState;    // 0 means plugin ready to work
  17.                             // 1 means plugin pending
  18.                             // 2 means close the socket and print output
  19.     bool m_bHeartbeat;      // if true, means this is the special heartbeat signal
  20.                             // see targets.cpp for more info on this
  21.  
  22.  
  23. };
  24.  
  25. #endif